//
//  HomeCellBtn.m
//  jingdongfang
//
//  Created by LJL on 2017/8/17.
//  Copyright © 2017年 BOE. All rights reserved.
//

#import "HomeCellBtn.h"

@implementation HomeCellBtn

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        self.imageV = [[UIImageView alloc] init];
        self.label = [[UILabel alloc] init];
    };
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    [self addSubview:self.imageV];
    [self addSubview:self.label];

    self.imageV.frame = CGRectMake((KViewWeight - GSCALE(40))/2, GSCALE(15), GSCALE(40), GSCALE(40));
    self.label.frame = CGRectMake(0, self.imageV.bottom + GSCALE(8), KViewWeight, GSCALE(12));
    
    self.imageV.contentMode = UIViewContentModeScaleAspectFit;
    self.label.font = [UIFont systemFontOfSize:12];
    self.label.textAlignment = NSTextAlignmentCenter;
    self.label.textColor = [UIColor c4Color];
}
@end
